var content = require('../../../public/content');
var request = require('request');

return extend(content, {
    target:'#initial-balance',
    path:'/initial-balance/',
    data:{
        title:'初始余额'
    },
    grid:{
        paging:null,
        isDir:true
    },
    initCom:function(){
        var that = this;
        content.initCom.call(this);
        request.get(sourceHttp, {}, {
            'success':function(res){
                that.datagrid.option({
                    data:res.list,
                    columns:[{
                        title:'编码',
                        field:'id',
                        width:'12%'
                    }, {
                        title:'名称',
                        field:'buname',
                        content:'input'
                    }, {
                        title:'方向',
                        content:'借',
                        width:50
                    }, {
                        title:'期初余额',
                        field:'buname',
                        content:'input',
                        width:'30%'
                    }]
                })
            }
        })
    }
})